<template>
  <!-- <div> -->
  <!-- <p class="title">{{ count }}</p>
    <button @click="count++">按钮</button> -->

  <!-- 使用layout组件 -->
  <NuxtLayout>
    <!-- 相当于router-view，加载显示路由组件 -->
    <NuxtPage />
  </NuxtLayout>
  <!-- </div> -->
</template>

<script setup lang="ts">
const count = ref(0);
</script>

<style>
.title {
  color: pink;
}

/* .page-enter-active,
.page-leave-active {
  transition: all 2s;
}
.page-enter-from,
.page-leave-to {
  opacity: 0;
  filter: blur(1rem);
} */
.layout-enter-active,
.layout-leave-active {
  transition: all 2s;
}
.layout-enter-from,
.layout-leave-to {
  filter: grayscale(1);
}
</style>
